<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#222" media="(prefers-color-scheme: dark)"><meta name="generator" content="Hexo 7.3.0">

  <link rel="apple-touch-icon" sizes="180x180" href="/favicon.ico">
  <link rel="icon" type="image/png" sizes="32x32" href="/favicon.ico">
  <link rel="icon" type="image/png" sizes="16x16" href="/favicon.ico">
  <link rel="mask-icon" href="/favicon.ico" color="#222">

<link rel="stylesheet" href="/css/main.css">



<link rel="stylesheet" href="/lib/@fortawesome/fontawesome-free/css/all.min.css" integrity="sha256-5eIC48iZUHmSlSUz9XtjRyK2mzQkHScZY1WdMaoz74E=" crossorigin="anonymous">
  <link rel="stylesheet" href="/lib/animate.css/animate.min.css" integrity="sha256-PR7ttpcvz8qrF57fur/yAx1qXMFJeJFiA6pSzWi0OIE=" crossorigin="anonymous">

<script class="next-config" data-name="main" type="application/json">{"hostname":"blog.dqv5.com","root":"/","images":"/images","scheme":"Mist","darkmode":true,"version":"8.21.1","exturl":false,"sidebar":{"position":"right","width_expanded":320,"width_dual_column":240,"display":"always","padding":18,"offset":12},"hljswrap":true,"copycode":{"enable":true,"style":null},"fold":{"enable":true,"height":500},"bookmark":{"enable":false,"color":"#222","save":"auto"},"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":"gitalk","storage":true,"lazyload":false,"nav":null,"activeClass":"gitalk"},"stickytabs":false,"motion":{"enable":true,"async":true,"transition":{"menu_item":"fadeInDown","post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/search.xml","localsearch":{"enable":true,"top_n_per_article":1,"unescape":false,"preload":false,"trigger":"auto"}}</script><script src="/js/config.js"></script>

    <meta name="description" content="easyui全选、取消所有页">
<meta property="og:type" content="article">
<meta property="og:title" content="easyui全选、取消所有页">
<meta property="og:url" content="http://blog.dqv5.com/2016/05/13/easyui/index.html">
<meta property="og:site_name" content="dqv5.com">
<meta property="og:description" content="easyui全选、取消所有页">
<meta property="og:locale" content="zh_CN">
<meta property="article:published_time" content="2016-05-13T00:00:00.000Z">
<meta property="article:modified_time" content="2024-11-23T11:58:37.867Z">
<meta property="article:author" content="du qian">
<meta property="article:tag" content="web前端">
<meta property="article:tag" content="easyui">
<meta name="twitter:card" content="summary">


<link rel="canonical" href="http://blog.dqv5.com/2016/05/13/easyui/">


<script class="next-config" data-name="page" type="application/json">{"sidebar":"","isHome":false,"isPost":true,"lang":"zh-CN","comments":true,"permalink":"http://blog.dqv5.com/2016/05/13/easyui/","path":"2016/05/13/easyui/","title":"easyui全选、取消所有页"}</script>

<script class="next-config" data-name="calendar" type="application/json">""</script>
<title>easyui全选、取消所有页 | dqv5.com</title>
  

  <script src="/js/third-party/analytics/baidu-analytics.js"></script>
  <script async src="https://hm.baidu.com/hm.js?1752ae624eedea5ce859335ad2f0e657"></script>







  <noscript>
    <link rel="stylesheet" href="/css/noscript.css">
  </noscript>
</head>

<body itemscope itemtype="http://schema.org/WebPage" class="use-motion">
  <div class="headband"></div>

  <main class="main">
    <div class="column">
      <header class="header" itemscope itemtype="http://schema.org/WPHeader"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <i class="logo-line"></i>
      <p class="site-title">dqv5.com</p>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger" aria-label="搜索" role="button">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu"><li class="menu-item menu-item-home"><a href="/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li><li class="menu-item menu-item-tags"><a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签<span class="badge">49</span></a></li><li class="menu-item menu-item-categories"><a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类<span class="badge">20</span></a></li><li class="menu-item menu-item-archives"><a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>归档<span class="badge">61</span></a></li><li class="menu-item menu-item-留言板"><a href="/message-board/" rel="section"><i class="fa fa-comments fa-fw"></i>留言板</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
      <div class="search-header">
        <span class="search-icon">
          <i class="fa fa-search"></i>
        </span>
        <div class="search-input-container">
          <input autocomplete="off" autocapitalize="off" maxlength="80"
                placeholder="搜索..." spellcheck="false"
                type="search" class="search-input">
        </div>
        <span class="popup-btn-close" role="button">
          <i class="fa fa-times-circle"></i>
        </span>
      </div>
      <div class="search-result-container">
        <div class="search-result-icon">
          <i class="fa fa-spinner fa-pulse fa-5x"></i>
        </div>
      </div>
    </div>
  </div>

</header>
        
  
  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%85%B3%E9%94%AE%E4%BB%A3%E7%A0%81%EF%BC%9A"><span class="nav-text">关键代码：</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%85%A8%E9%83%A8%E4%BB%A3%E7%A0%81"><span class="nav-text">全部代码</span></a></li></ol></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="du qian"
      src="/images/soccer.jpg">
  <p class="site-author-name" itemprop="name">du qian</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
        <a href="/archives/">
          <span class="site-state-item-count">61</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
          <a href="/categories/">
        <span class="site-state-item-count">20</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
          <a href="/tags/">
        <span class="site-state-item-count">49</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author animated">
      <span class="links-of-author-item">
        <a href="https://github.com/duqian42707" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://stackoverflow.com/duqian42707" title="StackOverflow → https:&#x2F;&#x2F;stackoverflow.com&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fab fa-stack-overflow fa-fw"></i>StackOverflow</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://blog.csdn.net/duqian42707" title="CSDN → https:&#x2F;&#x2F;blog.csdn.net&#x2F;duqian42707" rel="noopener me" target="_blank"><i class="fas fa-link fa-fw"></i>CSDN</a>
      </span>
      <span class="links-of-author-item">
        <a href="https://duqian42707.github.io/qiniu-host" title="图床 → https:&#x2F;&#x2F;duqian42707.github.io&#x2F;qiniu-host" rel="noopener me" target="_blank"><i class="far fa-image fa-fw"></i>图床</a>
      </span>
  </div>

        </div>
      </div>
    </div>

    
  </aside>


    </div>

    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://blog.dqv5.com/2016/05/13/easyui/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/soccer.jpg">
      <meta itemprop="name" content="du qian">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="dqv5.com">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="post" itemscope itemtype="http://schema.org/CreativeWork">
      <meta itemprop="name" content="easyui全选、取消所有页 | dqv5.com">
      <meta itemprop="description" content="">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          easyui全选、取消所有页
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2016-05-13 00:00:00" itemprop="dateCreated datePublished" datetime="2016-05-13T00:00:00+00:00">2016-05-13</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar-check"></i>
      </span>
      <span class="post-meta-item-text">更新于</span>
      <time title="修改时间：2024-11-23 11:58:37" itemprop="dateModified" datetime="2024-11-23T11:58:37+00:00">2024-11-23</time>
    </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/categories/lessons/" itemprop="url" rel="index"><span itemprop="name">lessons</span></a>
        </span>
    </span>

  
    <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span id="busuanzi_value_page_pv"></span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody"><p>摘要：easyui全选、取消所有页</p>
<!-- more -->

<h3 id="关键代码："><a href="#关键代码：" class="headerlink" title="关键代码："></a>关键代码：</h3><figure class="highlight plaintext"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br></pre></td><td class="code"><pre><span class="line">&lt;script type=&quot;text/javascript&quot;&gt;</span><br><span class="line">    var type=&#x27;select&#x27;   //模式：选中/取消</span><br><span class="line">    var selected=new Array();   //已选中的行</span><br><span class="line">    var canceled=new Array();   //已取消的行</span><br><span class="line">    $(function()&#123;</span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;</span><br><span class="line">            view: myview,</span><br><span class="line">            //fitColumns: true,</span><br><span class="line">            algin:&#x27;center&#x27;,</span><br><span class="line">            url:&#x27;&lt;%=request.getContextPath()%&gt;/sys/log/ajaxDatagrid&#x27;,</span><br><span class="line">            idField:&#x27;LOG_ID&#x27;,</span><br><span class="line">            columns:[[</span><br><span class="line">            &#123;field:&#x27;LOG_ID&#x27;,title:&#x27;ID&#x27;,width:&#x27;40&#x27;,checkbox:true&#125;,</span><br><span class="line">            &#123;field:&#x27;NUM&#x27;,title:&#x27;序号&#x27;,width:&#x27;40&#x27;&#125;,</span><br><span class="line">            &#123;field:&#x27;USER_NAME&#x27;,title:&#x27;用户&#x27;,width:&#x27;80&#x27;,align:&#x27;center&#x27;&#125;,</span><br><span class="line">            &#123;field:&#x27;SYSTEM&#x27;,title:&#x27;平台&#x27;,width:&#x27;60&#x27;,align:&#x27;center&#x27;,formatter:dataFormat&#125;,</span><br><span class="line">            &#123;field:&#x27;FUNC_RIGHT_NAME&#x27;,title:&#x27;功能&#x27;,width:&#x27;200&#x27;,align:&#x27;center&#x27;&#125;,</span><br><span class="line">            &#123;field:&#x27;MOD_TIME&#x27;,title:&#x27;时间&#x27;,width:&#x27;150&#x27;,align:&#x27;center&#x27;&#125;,</span><br><span class="line">            &#123;field:&#x27;UUID&#x27;,title:&#x27;UUID&#x27;,width:&#x27;275&#x27;,align:&#x27;center&#x27;&#125;,</span><br><span class="line">            &#123;field:&#x27;DETAIL&#x27;,title:&#x27;具体内容&#x27;,align:&#x27;left&#x27;,width:&#x27;400&#x27;,formatter:function(value,row,index)&#123;</span><br><span class="line">                    var html=&#x27;&lt;a href=&quot;javascript:view(&#x27;+row.LOG_ID+&#x27;)&quot;&gt;&#x27;+value+&#x27;&lt;/a&gt;&#x27;;</span><br><span class="line">                    return html;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            ]],</span><br><span class="line">            height:620,</span><br><span class="line">            pageSize:12,</span><br><span class="line">            pageList:[12,24,36],</span><br><span class="line">            pagination:true</span><br><span class="line">        &#125;)</span><br><span class="line"></span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;onLoadSuccess :function(data)&#123;</span><br><span class="line">            initRows()//翻页初始化</span><br><span class="line">        &#125;&#125;)</span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;onCheckAll :function()&#123;</span><br><span class="line">            type=&#x27;cancel&#x27;//切换为取消模式</span><br><span class="line">            selected=new Array();</span><br><span class="line">            canceled=new Array();</span><br><span class="line">        &#125;&#125;)</span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;onUncheckAll :function()&#123;</span><br><span class="line">            type=&#x27;select&#x27;//切换为选中模式</span><br><span class="line">            selected=new Array();</span><br><span class="line">            canceled=new Array();</span><br><span class="line">        &#125;&#125;)</span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;onSelect:function(index,row)&#123;</span><br><span class="line">            //选中某条数据时：若是select模式则在selected变量中添加一个id(若已存在则不添加)，</span><br><span class="line">            //若是cancel模式，则从canceled变量中删除该id</span><br><span class="line">            if(type==&#x27;select&#x27;)&#123;</span><br><span class="line">                if(selected.indexOf(row.LOG_ID)==-1)&#123;</span><br><span class="line">                    selected.push(row.LOG_ID)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;else&#123;</span><br><span class="line">                var index = canceled.indexOf(row.LOG_ID)</span><br><span class="line">                if(index!=-1)&#123;</span><br><span class="line">                    canceled.splice(index,1)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;&#125;)</span><br><span class="line">        $(&#x27;#datalist&#x27;).datagrid(&#123;onUnselect:function(index,row)&#123;</span><br><span class="line">            //取消某条数据时：若是select模式则从selected变量中删除该id，</span><br><span class="line">            //若是cancel模式，则在canceled变量中添加一个id(若已存在则不添加)</span><br><span class="line">            if(type==&#x27;select&#x27;)&#123;</span><br><span class="line">                var index = selected.indexOf(row.LOG_ID)</span><br><span class="line">                if(index!=-1)&#123;</span><br><span class="line">                    selected.splice(index,1)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;else&#123;</span><br><span class="line">                if(canceled.indexOf(row.LOG_ID)==-1)&#123;</span><br><span class="line">                    canceled.push(row.LOG_ID)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;&#125;)</span><br><span class="line"></span><br><span class="line"></span><br><span class="line">    &#125;)</span><br><span class="line">    //翻页初始化</span><br><span class="line">    function initRows()&#123;</span><br><span class="line">        var l = $(&#x27;#datalist&#x27;).datagrid(&#x27;getRows&#x27;).length</span><br><span class="line">        if(type==&#x27;select&#x27;)&#123;</span><br><span class="line">            //若是select模式，则先将该页所有行取消选中，在选中selected中本页的行</span><br><span class="line">            var myselected=new Array();</span><br><span class="line">            for (var i=0;i&lt;selected.length;i++)&#123;</span><br><span class="line">                var index=$(&#x27;#datalist&#x27;).datagrid(&#x27;getRowIndex&#x27;,selected[i])</span><br><span class="line">                if(index!=-1)&#123;</span><br><span class="line">                    myselected.push(index)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            for (var i=0;i&lt;l;i++)&#123;</span><br><span class="line">                $(&#x27;#datalist&#x27;).datagrid(&#x27;unselectRow&#x27;,i)</span><br><span class="line">            &#125;</span><br><span class="line">            for (var i=0;i&lt;l;i++)&#123;</span><br><span class="line">                if(myselected.indexOf(i)!=-1)&#123;</span><br><span class="line">                    $(&#x27;#datalist&#x27;).datagrid(&#x27;selectRow&#x27;,i)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;else&#123;</span><br><span class="line">            //若是cancel模式，则先将该页所有行选中，再取消选中canceled中本页的行</span><br><span class="line">            var mycanceled=new Array();</span><br><span class="line">            for (var i=0;i&lt;canceled.length;i++)&#123;</span><br><span class="line">                var index=$(&#x27;#datalist&#x27;).datagrid(&#x27;getRowIndex&#x27;,canceled[i])</span><br><span class="line">                if(index!=-1)&#123;</span><br><span class="line">                    mycanceled.push(index)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">            for (var i=0;i&lt;l;i++)&#123;</span><br><span class="line">                $(&#x27;#datalist&#x27;).datagrid(&#x27;selectRow&#x27;,i)</span><br><span class="line">            &#125;</span><br><span class="line">            for (var i=0;i&lt;l;i++)&#123;</span><br><span class="line">                if(mycanceled.indexOf(i)!=-1)&#123;</span><br><span class="line">                    $(&#x27;#datalist&#x27;).datagrid(&#x27;unselectRow&#x27;,i)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    function chmod()&#123;</span><br><span class="line">        if(type==&#x27;select&#x27;)&#123;</span><br><span class="line">            alert(&#x27;selected:&#x27;+selected)</span><br><span class="line">        &#125;else&#123;</span><br><span class="line">            alert(&#x27;canceled:&#x27;+canceled)</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">  &lt;/script&gt;</span><br><span class="line">  &lt;div class=&quot;layer&quot;&gt;</span><br><span class="line">            &lt;div class=&quot;search_form&quot; style=&quot;margin-bottom:20px;&quot;&gt;</span><br><span class="line">               &lt;form&gt;</span><br><span class="line">               &lt;table width=&quot;85%&quot;&gt;</span><br><span class="line">                  &lt;input type=&quot;button&quot; value=&quot;变更授权&quot; onclick=&quot;chmod()&quot;/&gt;</span><br><span class="line">               &lt;/table&gt;</span><br><span class="line">               &lt;/form&gt;</span><br><span class="line">            &lt;/div&gt;</span><br><span class="line"></span><br><span class="line">            &lt;div class=&quot;common_list&quot;&gt;</span><br><span class="line">                &lt;table class=&quot;tablelist comm&quot; id=&quot;datalist&quot; &gt;&lt;/table&gt;</span><br><span class="line">            &lt;/div&gt;</span><br><span class="line">  &lt;/div&gt;</span><br></pre></td></tr></table></figure>

<h3 id="全部代码"><a href="#全部代码" class="headerlink" title="全部代码"></a>全部代码</h3><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br><span class="line">165</span><br><span class="line">166</span><br><span class="line">167</span><br><span class="line">168</span><br><span class="line">169</span><br><span class="line">170</span><br><span class="line">171</span><br><span class="line">172</span><br><span class="line">173</span><br><span class="line">174</span><br><span class="line">175</span><br><span class="line">176</span><br><span class="line">177</span><br><span class="line">178</span><br><span class="line">179</span><br><span class="line">180</span><br><span class="line">181</span><br><span class="line">182</span><br><span class="line">183</span><br><span class="line">184</span><br><span class="line">185</span><br><span class="line">186</span><br><span class="line">187</span><br><span class="line">188</span><br><span class="line">189</span><br><span class="line">190</span><br><span class="line">191</span><br><span class="line">192</span><br><span class="line">193</span><br><span class="line">194</span><br><span class="line">195</span><br><span class="line">196</span><br><span class="line">197</span><br><span class="line">198</span><br><span class="line">199</span><br><span class="line">200</span><br><span class="line">201</span><br><span class="line">202</span><br><span class="line">203</span><br><span class="line">204</span><br><span class="line">205</span><br><span class="line">206</span><br><span class="line">207</span><br><span class="line">208</span><br><span class="line">209</span><br><span class="line">210</span><br><span class="line">211</span><br><span class="line">212</span><br><span class="line">213</span><br><span class="line">214</span><br><span class="line">215</span><br><span class="line">216</span><br><span class="line">217</span><br><span class="line">218</span><br><span class="line">219</span><br><span class="line">220</span><br><span class="line">221</span><br><span class="line">222</span><br><span class="line">223</span><br><span class="line">224</span><br><span class="line">225</span><br><span class="line">226</span><br><span class="line">227</span><br><span class="line">228</span><br><span class="line">229</span><br><span class="line">230</span><br><span class="line">231</span><br><span class="line">232</span><br><span class="line">233</span><br><span class="line">234</span><br><span class="line">235</span><br><span class="line">236</span><br><span class="line">237</span><br><span class="line">238</span><br><span class="line">239</span><br><span class="line">240</span><br><span class="line">241</span><br><span class="line">242</span><br><span class="line">243</span><br><span class="line">244</span><br><span class="line">245</span><br><span class="line">246</span><br><span class="line">247</span><br><span class="line">248</span><br><span class="line">249</span><br><span class="line">250</span><br><span class="line">251</span><br><span class="line">252</span><br><span class="line">253</span><br><span class="line">254</span><br><span class="line">255</span><br><span class="line">256</span><br><span class="line">257</span><br><span class="line">258</span><br><span class="line">259</span><br><span class="line">260</span><br><span class="line">261</span><br><span class="line">262</span><br><span class="line">263</span><br><span class="line">264</span><br><span class="line">265</span><br><span class="line">266</span><br><span class="line">267</span><br><span class="line">268</span><br><span class="line">269</span><br><span class="line">270</span><br><span class="line">271</span><br><span class="line">272</span><br><span class="line">273</span><br></pre></td><td class="code"><pre><span class="line">&lt;%@ page language=&quot;java&quot; import=&quot;java.util.*&quot; pageEncoding=&quot;UTF-8&quot;%&gt;</span><br><span class="line"></span><br><span class="line"><span class="meta">&lt;!DOCTYPE <span class="keyword">html</span> <span class="keyword">PUBLIC</span> <span class="string">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span class="string">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;<span class="name">html</span> <span class="attr">xmlns</span>=<span class="string">&quot;http://www.w3.org/1999/xhtml&quot;</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">head</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">title</span>&gt;</span><span class="tag">&lt;/<span class="name">title</span>&gt;</span></span><br><span class="line">    <span class="tag">&lt;<span class="name">meta</span> <span class="attr">http-equiv</span>=<span class="string">&quot;Content-Type&quot;</span> <span class="attr">content</span>=<span class="string">&quot;text/html; charset=utf-8&quot;</span> /&gt;</span></span><br><span class="line">  <span class="tag">&lt;/<span class="name">head</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">body</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">style</span>&gt;</span><span class="language-css"></span></span><br><span class="line"><span class="language-css">  <span class="selector-class">.sipt</span>&#123;<span class="attribute">width</span>:<span class="number">100px</span><span class="meta">!important</span>&#125;</span></span><br><span class="line"><span class="language-css">  <span class="selector-id">#param3</span><span class="selector-attr">[class=<span class="string">&quot;sipt&quot;</span>]</span>&#123;<span class="attribute">width</span>:<span class="number">230px</span><span class="meta">!important</span>&#125;</span></span><br><span class="line"><span class="language-css">  <span class="selector-id">#param7</span><span class="selector-attr">[class=<span class="string">&quot;sipt&quot;</span>]</span>&#123;<span class="attribute">width</span>:<span class="number">230px</span><span class="meta">!important</span>&#125;</span></span><br><span class="line"><span class="language-css">  </span><span class="tag">&lt;/<span class="name">style</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;<span class="name">script</span> <span class="attr">type</span>=<span class="string">&quot;text/javascript&quot;</span>&gt;</span><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">var</span> type=<span class="string">&#x27;select&#x27;</span>   <span class="comment">//模式：选中/取消</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">var</span> selected=<span class="keyword">new</span> <span class="title class_">Array</span>();   <span class="comment">//已选中的行</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">var</span> canceled=<span class="keyword">new</span> <span class="title class_">Array</span>();   <span class="comment">//已取消的行</span></span></span><br><span class="line"><span class="language-javascript">    $(<span class="keyword">function</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="title function_">judgement</span>(<span class="number">1</span>);</span></span><br><span class="line"><span class="language-javascript">        <span class="title function_">judgement</span>(<span class="number">5</span>);</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">view</span>: myview,</span></span><br><span class="line"><span class="language-javascript">            <span class="comment">//fitColumns: true,</span></span></span><br><span class="line"><span class="language-javascript">            <span class="attr">algin</span>:<span class="string">&#x27;center&#x27;</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">url</span>:<span class="string">&#x27;&lt;%=request.getContextPath()%&gt;/sys/log/ajaxDatagrid&#x27;</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">idField</span>:<span class="string">&#x27;LOG_ID&#x27;</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">columns</span>:[[</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;LOG_ID&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;ID&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;40&#x27;</span>,<span class="attr">checkbox</span>:<span class="literal">true</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;NUM&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;序号&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;40&#x27;</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;USER_NAME&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;用户&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;80&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;center&#x27;</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;SYSTEM&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;平台&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;60&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;center&#x27;</span>,<span class="attr">formatter</span>:dataFormat&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;FUNC_RIGHT_NAME&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;功能&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;200&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;center&#x27;</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;MOD_TIME&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;时间&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;150&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;center&#x27;</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;UUID&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;UUID&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;275&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;center&#x27;</span>&#125;,</span></span><br><span class="line"><span class="language-javascript">            &#123;<span class="attr">field</span>:<span class="string">&#x27;DETAIL&#x27;</span>,<span class="attr">title</span>:<span class="string">&#x27;具体内容&#x27;</span>,<span class="attr">align</span>:<span class="string">&#x27;left&#x27;</span>,<span class="attr">width</span>:<span class="string">&#x27;400&#x27;</span>,<span class="attr">formatter</span>:<span class="keyword">function</span>(<span class="params">value,row,index</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    <span class="keyword">var</span> html=<span class="string">&#x27;&lt;a href=&quot;javascript:view(&#x27;</span>+row.<span class="property">LOG_ID</span>+<span class="string">&#x27;)&quot;&gt;&#x27;</span>+value+<span class="string">&#x27;&lt;/a&gt;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">                    <span class="keyword">return</span> html;</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">            ]],</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">height</span>:<span class="number">620</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">pageSize</span>:<span class="number">12</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">pageList</span>:[<span class="number">12</span>,<span class="number">24</span>,<span class="number">36</span>],</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">pagination</span>:<span class="literal">true</span></span></span><br><span class="line"><span class="language-javascript">        &#125;)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;onLoadSuccess :<span class="keyword">function</span>(<span class="params">data</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="title function_">initRows</span>()<span class="comment">//翻页初始化</span></span></span><br><span class="line"><span class="language-javascript">        &#125;&#125;)</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;onCheckAll :<span class="keyword">function</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            type=<span class="string">&#x27;cancel&#x27;</span><span class="comment">//切换为取消模式</span></span></span><br><span class="line"><span class="language-javascript">            selected=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">            canceled=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">        &#125;&#125;)</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;onUncheckAll :<span class="keyword">function</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            type=<span class="string">&#x27;select&#x27;</span><span class="comment">//切换为选中模式</span></span></span><br><span class="line"><span class="language-javascript">            selected=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">            canceled=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">        &#125;&#125;)</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;<span class="attr">onSelect</span>:<span class="keyword">function</span>(<span class="params">index,row</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="comment">//选中某条数据时：若是select模式则在selected变量中添加一个id(若已存在则不添加)，若是cancel模式，则从canceled变量中删除该id</span></span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">if</span>(type==<span class="string">&#x27;select&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(selected.<span class="title function_">indexOf</span>(row.<span class="property">LOG_ID</span>)==-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    selected.<span class="title function_">push</span>(row.<span class="property">LOG_ID</span>)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">var</span> index = canceled.<span class="title function_">indexOf</span>(row.<span class="property">LOG_ID</span>)</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(index!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    canceled.<span class="title function_">splice</span>(index,<span class="number">1</span>)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;&#125;)</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(&#123;<span class="attr">onUnselect</span>:<span class="keyword">function</span>(<span class="params">index,row</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="comment">//取消某条数据时：若是select模式则从selected变量中删除该id，若是cancel模式，则在canceled变量中添加一个id(若已存在则不添加)</span></span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">if</span>(type==<span class="string">&#x27;select&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">var</span> index = selected.<span class="title function_">indexOf</span>(row.<span class="property">LOG_ID</span>)</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(index!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    selected.<span class="title function_">splice</span>(index,<span class="number">1</span>)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(canceled.<span class="title function_">indexOf</span>(row.<span class="property">LOG_ID</span>)==-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    canceled.<span class="title function_">push</span>(row.<span class="property">LOG_ID</span>)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;&#125;)</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    &#125;)</span></span><br><span class="line"><span class="language-javascript">    <span class="comment">//翻页初始化</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">initRows</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> l = $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;getRows&#x27;</span>).<span class="property">length</span></span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>(type==<span class="string">&#x27;select&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="comment">//若是select模式，则先将该页所有行取消选中，在选中selected中本页的行</span></span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">var</span> myselected=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;selected.<span class="property">length</span>;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">var</span> index=$(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;getRowIndex&#x27;</span>,selected[i])</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(index!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    myselected.<span class="title function_">push</span>(index)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;l;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;unselectRow&#x27;</span>,i)</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;l;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(myselected.<span class="title function_">indexOf</span>(i)!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;selectRow&#x27;</span>,i)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="comment">//若是cancel模式，则先将该页所有行选中，再取消选中canceled中本页的行</span></span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">var</span> mycanceled=<span class="keyword">new</span> <span class="title class_">Array</span>();</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;canceled.<span class="property">length</span>;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">var</span> index=$(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;getRowIndex&#x27;</span>,canceled[i])</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(index!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    mycanceled.<span class="title function_">push</span>(index)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;l;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;selectRow&#x27;</span>,i)</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">for</span> (<span class="keyword">var</span> i=<span class="number">0</span>;i&lt;l;i++)&#123;</span></span><br><span class="line"><span class="language-javascript">                <span class="keyword">if</span>(mycanceled.<span class="title function_">indexOf</span>(i)!=-<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                    $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;unselectRow&#x27;</span>,i)</span></span><br><span class="line"><span class="language-javascript">                &#125;</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">chmod</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>(type==<span class="string">&#x27;select&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="title function_">alert</span>(<span class="string">&#x27;selected:&#x27;</span>+selected)</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="title function_">alert</span>(<span class="string">&#x27;canceled:&#x27;</span>+canceled)</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">dataFormat</span>(<span class="params">value,row,index</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>(value==<span class="string">&#x27;0&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">return</span> <span class="string">&#x27;web端&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span> <span class="keyword">if</span>(value==<span class="string">&#x27;1&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">return</span> <span class="string">&#x27;移动端&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">query</span>(<span class="params"></span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> param=<span class="string">&#x27;&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>($(<span class="string">&#x27;#param3&#x27;</span>).<span class="title function_">val</span>()!=<span class="string">&#x27;&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param1&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param2&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param3&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>($(<span class="string">&#x27;#param3&#x27;</span>).<span class="title function_">val</span>()!=<span class="string">&#x27;&#x27;</span>&amp;&amp;$(<span class="string">&#x27;#param7&#x27;</span>).<span class="title function_">val</span>()!=<span class="string">&#x27;&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param4&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>($(<span class="string">&#x27;#param7&#x27;</span>).<span class="title function_">val</span>()!=<span class="string">&#x27;&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param5&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param6&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">            param+=$(<span class="string">&#x27;#param7&#x27;</span>).<span class="title function_">val</span>()+<span class="string">&#x27;,&#x27;</span>;</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>(param!=<span class="string">&#x27;&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            param=param.<span class="title function_">substring</span>(<span class="number">0</span>, param.<span class="property">length</span>-<span class="number">1</span>);</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#datalist&#x27;</span>).<span class="title function_">datagrid</span>(<span class="string">&#x27;load&#x27;</span>,&#123;<span class="attr">param</span>:param&#125;)</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript">    <span class="comment">/**</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     * 根据param1(param5)的选择,改变param2(param6)、param3(param7)的内容及类型</span></span></span><br><span class="line"><span class="comment"><span class="language-javascript">     */</span></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">judgement</span>(<span class="params">num</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">empty</span>();</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> obj = $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">2</span>)).<span class="title function_">parent</span>()</span></span><br><span class="line"><span class="language-javascript">        obj.<span class="title function_">empty</span>()</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">var</span> p = $(<span class="string">&#x27;#param&#x27;</span>+num).<span class="title function_">val</span>();</span></span><br><span class="line"><span class="language-javascript">        <span class="keyword">if</span>(p==<span class="string">&#x27;3&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            obj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;input class=&quot;ssl&quot; type=&quot;text&quot; id=&quot;param&#x27;</span>+(num+<span class="number">2</span>)+<span class="string">&#x27;&quot; /&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">if</span>(num==<span class="number">1</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">append</span>(<span class="string">&#x27;&lt;option value=&quot;&gt;&quot;&gt;大于&lt;/option&gt;&lt;option value=&quot;=&quot;&gt;等于&lt;/option&gt;&lt;option value=&quot;&lt;&quot;&gt;小于&lt;/option&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">2</span>)).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>)&#123;<span class="title class_">WdatePicker</span>(&#123;<span class="attr">startDate</span>:<span class="string">&#x27;%y-%M-%d 00:00:00&#x27;</span>,<span class="attr">dateFmt</span>:<span class="string">&#x27;yyyy-MM-dd HH:mm:ss&#x27;</span>&#125;)&#125;)</span></span><br><span class="line"><span class="language-javascript">            &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">append</span>(<span class="string">&#x27;&lt;option value=&quot;&lt;&quot;&gt;小于&lt;/option&gt;&lt;option value=&quot;=&quot;&gt;等于&lt;/option&gt;&lt;option value=&quot;&gt;&quot;&gt;大于&lt;/option&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">                $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">2</span>)).<span class="title function_">click</span>(<span class="keyword">function</span>(<span class="params"></span>)&#123;<span class="title class_">WdatePicker</span>(&#123;<span class="attr">startDate</span>:<span class="string">&#x27;%y-%M-%d 23:59:59&#x27;</span>,<span class="attr">dateFmt</span>:<span class="string">&#x27;yyyy-MM-dd HH:mm:ss&#x27;</span>&#125;)&#125;)</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span> <span class="keyword">if</span>(p==<span class="string">&#x27;8&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">append</span>(<span class="string">&#x27;&lt;option value=&quot;like&quot;&gt;包含&lt;/option&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            obj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;input class=&quot;ssl&quot; type=&quot;text&quot; id=&quot;param&#x27;</span>+(num+<span class="number">2</span>)+<span class="string">&#x27;&quot;/&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span> <span class="keyword">if</span>(p==<span class="string">&#x27;1&#x27;</span>||p==<span class="string">&#x27;4&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">            $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">append</span>(<span class="string">&#x27;&lt;option value=&quot;=&quot;&gt;等于&lt;/option&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            <span class="keyword">if</span>(p==<span class="string">&#x27;1&#x27;</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">                obj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;select class=&quot;sipt&quot; id=&quot;param&#x27;</span>+(num+<span class="number">2</span>)+<span class="string">&#x27;&quot;&gt;&lt;option value=&quot;0&quot;&gt;web端&lt;/option&gt;&lt;option value=&quot;1&quot;&gt;移动端&lt;/option&gt;&lt;/select&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">                obj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;select class=&quot;sipt&quot; id=&quot;param&#x27;</span>+(num+<span class="number">2</span>)+<span class="string">&#x27;&quot;&gt;&lt;option value=&quot;0&quot;&gt;使用日志&lt;/option&gt;&#x27;</span></span></span><br><span class="line"><span class="language-javascript">                    +<span class="string">&#x27;&lt;option value=&quot;1&quot;&gt;正常操作日志&lt;/option&gt;&lt;option value=&quot;2&quot;&gt;错误日志&lt;/option&gt;&lt;/select&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            &#125;</span></span><br><span class="line"><span class="language-javascript">        &#125;<span class="keyword">else</span>&#123;</span></span><br><span class="line"><span class="language-javascript">            $(<span class="string">&#x27;#param&#x27;</span>+(num+<span class="number">1</span>)).<span class="title function_">append</span>(<span class="string">&#x27;&lt;option value=&quot;like&quot;&gt;包含&lt;/option&gt;&lt;option value=&quot;=&quot;&gt;等于&lt;/option&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">            obj.<span class="title function_">append</span>(<span class="string">&#x27;&lt;input class=&quot;ssl&quot; type=&quot;text&quot; id=&quot;param&#x27;</span>+(num+<span class="number">2</span>)+<span class="string">&#x27;&quot;/&gt;&#x27;</span>)</span></span><br><span class="line"><span class="language-javascript">        &#125;</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">    <span class="keyword">function</span> <span class="title function_">view</span>(<span class="params">logId</span>)&#123;</span></span><br><span class="line"><span class="language-javascript">        layer.<span class="title function_">open</span>(&#123;</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">type</span>:<span class="number">2</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">content</span>:<span class="string">&#x27;&lt;%=request.getContextPath()%&gt;/sys/log/view?logId=&#x27;</span>+logId,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">area</span>:[<span class="string">&#x27;600px&#x27;</span>,<span class="string">&#x27;500px&#x27;</span>],</span></span><br><span class="line"><span class="language-javascript">            closeBtn :<span class="number">0</span>,</span></span><br><span class="line"><span class="language-javascript">            <span class="attr">title</span>:[<span class="string">&#x27;查看&#x27;</span>]</span></span><br><span class="line"><span class="language-javascript">        &#125;)</span></span><br><span class="line"><span class="language-javascript">    &#125;</span></span><br><span class="line"><span class="language-javascript"></span></span><br><span class="line"><span class="language-javascript">  </span><span class="tag">&lt;/<span class="name">script</span>&gt;</span></span><br><span class="line"></span><br><span class="line"></span><br><span class="line">        <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;nav&quot;</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;current&quot;</span>&gt;</span>系统管理&gt;&gt;日志管理<span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;btns&quot;</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"></span><br><span class="line">        <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;layer&quot;</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;search_form&quot;</span> <span class="attr">style</span>=<span class="string">&quot;margin-bottom:20px;&quot;</span>&gt;</span></span><br><span class="line">               <span class="tag">&lt;<span class="name">form</span>&gt;</span></span><br><span class="line">               <span class="tag">&lt;<span class="name">table</span> <span class="attr">width</span>=<span class="string">&quot;85%&quot;</span>&gt;</span></span><br><span class="line">                  <span class="tag">&lt;<span class="name">tr</span>&gt;</span></span><br><span class="line">                  <span class="tag">&lt;<span class="name">td</span>&gt;</span><span class="tag">&lt;<span class="name">select</span> <span class="attr">id</span>=<span class="string">&quot;param1&quot;</span> <span class="attr">onchange</span>=<span class="string">&quot;judgement(1)&quot;</span> <span class="attr">class</span>=<span class="string">&quot;sipt&quot;</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;0&quot;</span>&gt;</span>用户<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;1&quot;</span>&gt;</span>平台<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;2&quot;</span>&gt;</span>功能<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;3&quot;</span>&gt;</span>时间<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;4&quot;</span>&gt;</span>日志类型<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;5&quot;</span>&gt;</span>终端号<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;6&quot;</span>&gt;</span>应用名称<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;7&quot;</span>&gt;</span>UUID<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                        <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;8&quot;</span>&gt;</span>具体内容<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;/<span class="name">select</span>&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">select</span> <span class="attr">id</span>=<span class="string">&quot;param2&quot;</span> <span class="attr">class</span>=<span class="string">&quot;sipt&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">select</span>&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span><span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">&quot;text&quot;</span> <span class="attr">id</span>=<span class="string">&quot;param3&quot;</span> <span class="attr">class</span>=<span class="string">&quot;ssl&quot;</span>/&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">select</span> <span class="attr">id</span>=<span class="string">&quot;param4&quot;</span> <span class="attr">class</span>=<span class="string">&quot;sipt&quot;</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;and&quot;</span>&gt;</span>并且<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;or&quot;</span>&gt;</span>或者<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;/<span class="name">select</span>&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">select</span> <span class="attr">id</span>=<span class="string">&quot;param5&quot;</span> <span class="attr">onchange</span>=<span class="string">&quot;judgement(5)&quot;</span> <span class="attr">class</span>=<span class="string">&quot;sipt&quot;</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;0&quot;</span>&gt;</span>用户<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;1&quot;</span>&gt;</span>平台<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;2&quot;</span>&gt;</span>功能<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;3&quot;</span>&gt;</span>时间<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;4&quot;</span>&gt;</span>日志类型<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;5&quot;</span>&gt;</span>终端号<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;6&quot;</span>&gt;</span>应用名称<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;7&quot;</span>&gt;</span>UUID<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                    <span class="tag">&lt;<span class="name">option</span> <span class="attr">value</span>=<span class="string">&quot;8&quot;</span>&gt;</span>具体内容<span class="tag">&lt;/<span class="name">option</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;/<span class="name">select</span>&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">select</span> <span class="attr">id</span>=<span class="string">&quot;param6&quot;</span> <span class="attr">class</span>=<span class="string">&quot;sipt&quot;</span>&gt;</span><span class="tag">&lt;/<span class="name">select</span>&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">td</span>&gt;</span><span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">&quot;text&quot;</span> <span class="attr">id</span>=<span class="string">&quot;param7&quot;</span> <span class="attr">class</span>=<span class="string">&quot;ssl&quot;</span>/&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                  <span class="tag">&lt;<span class="name">td</span>&gt;</span><span class="tag">&lt;<span class="name">img</span> <span class="attr">src</span>=<span class="string">&quot;&lt;%=request.getContextPath()%&gt;/resources/images/btn-search.png&quot;</span> <span class="attr">onclick</span>=<span class="string">&quot;query()&quot;</span> <span class="attr">style</span>=<span class="string">&quot;height:35px;cursor: pointer;&quot;</span>/&gt;</span></span><br><span class="line">                  <span class="tag">&lt;<span class="name">input</span> <span class="attr">type</span>=<span class="string">&quot;button&quot;</span> <span class="attr">value</span>=<span class="string">&quot;变更授权&quot;</span> <span class="attr">onclick</span>=<span class="string">&quot;chmod()&quot;</span>/&gt;</span><span class="tag">&lt;/<span class="name">td</span>&gt;</span></span><br><span class="line">                  <span class="tag">&lt;/<span class="name">tr</span>&gt;</span></span><br><span class="line">               <span class="tag">&lt;/<span class="name">table</span>&gt;</span></span><br><span class="line">               <span class="tag">&lt;/<span class="name">form</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line"></span><br><span class="line">            <span class="tag">&lt;<span class="name">div</span> <span class="attr">class</span>=<span class="string">&quot;common_list&quot;</span>&gt;</span></span><br><span class="line">                <span class="tag">&lt;<span class="name">table</span> <span class="attr">class</span>=<span class="string">&quot;tablelist comm&quot;</span> <span class="attr">id</span>=<span class="string">&quot;datalist&quot;</span> &gt;</span><span class="tag">&lt;/<span class="name">table</span>&gt;</span></span><br><span class="line">            <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">        <span class="tag">&lt;/<span class="name">div</span>&gt;</span></span><br><span class="line">  <span class="tag">&lt;/<span class="name">body</span>&gt;</span></span><br><span class="line"><span class="tag">&lt;/<span class="name">html</span>&gt;</span></span><br><span class="line"></span><br></pre></td></tr></table></figure>
    </div>

    
    
    

    <footer class="post-footer">
          <div class="reward-container">
  <div>请我一杯咖啡吧！</div>
  <button>
    赞赏
  </button>
  <div class="post-reward">
      <div>
        <img src="/images/wechatpay.jpg" alt="du qian 微信">
        <span>微信</span>
      </div>
      <div>
        <img src="/images/alipay.jpg" alt="du qian 支付宝">
        <span>支付宝</span>
      </div>

  </div>
</div>

          <div class="post-tags">
              <a href="/tags/web%E5%89%8D%E7%AB%AF/" rel="tag"># web前端</a>
              <a href="/tags/easyui/" rel="tag"># easyui</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/2016/05/12/dq-post/" rel="prev" title="如何在github pages上搭建自己的博客">
                  <i class="fa fa-angle-left"></i> 如何在github pages上搭建自己的博客
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/2016/05/13/clock/" rel="next" title="用html5_canvas画时钟">
                  用html5_canvas画时钟 <i class="fa fa-angle-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>






    <div class="comments gitalk-container"></div>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">

  <div class="beian"><a href="https://beian.miit.gov.cn/" rel="noopener" target="_blank">冀ICP备17034993号-1 </a>
  </div>
  <div class="copyright">
    &copy; 2016 – 
    <span itemprop="copyrightYear">2024</span>
    <span class="with-love">
      <i class="fa fa-heart"></i>
    </span>
    <span class="author" itemprop="copyrightHolder">du qian</span>
  </div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/mist/" rel="noopener" target="_blank">NexT.Mist</a> 强力驱动
  </div>
  <div class="upyun-league">
    本网站由<a target="_blank" rel="noopener" href="https://www.upyun.com/?utm_source=lianmeng&utm_medium=referral" style="border-bottom: none;">
      <img src="/images/upyun_logo.png" alt="又拍云" style="display: inline;height: 30px;vertical-align: bottom;"/>
    </a>提供CDN加速/云存储服务
  </div>


    </div>
  </footer>

  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>
  <div class="sidebar-dimmer"></div>
  <div class="back-to-top" role="button" aria-label="返回顶部">
    <i class="fa fa-arrow-up fa-lg"></i>
    <span>0%</span>
  </div>

  <a href="https://github.com/duqian42707" class="github-corner" title="在 GitHub 上关注我" aria-label="在 GitHub 上关注我" rel="noopener" target="_blank"><svg width="80" height="80" viewBox="0 0 250 250" aria-hidden="true"><path d="M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"></path><path d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor" style="transform-origin: 130px 106px;" class="octo-arm"></path><path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor" class="octo-body"></path></svg></a>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


  
  <script src="/lib/animejs/lib/anime.min.js" integrity="sha256-XL2inqUJaslATFnHdJOi9GfQ60on8Wx1C2H8DYiN1xY=" crossorigin="anonymous"></script>
<script src="/js/comments.js"></script><script src="/js/utils.js"></script><script src="/js/motion.js"></script><script src="/js/sidebar.js"></script><script src="/js/next-boot.js"></script>

  <script src="/lib/hexo-generator-searchdb/dist/search.js" integrity="sha256-1kfA5uHPf65M5cphT2dvymhkuyHPQp5A53EGZOnOLmc=" crossorigin="anonymous"></script>
<script src="/js/third-party/search/local-search.js"></script>


  <script class="next-config" data-name="mermaid" type="application/json">{"enable":true,"theme":"forest","js":{"url":"/lib/mermaid/dist/mermaid.min.js","integrity":"sha256-G8ouPAnw4zzMbnAenHnVz6h9XpKbNdOkrqTh7AadyHs="}}</script>
  <script src="/js/third-party/tags/mermaid.js"></script>





  
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>




<link rel="stylesheet" href="/lib/gitalk/dist/gitalk.css" integrity="sha256-AJnUHL7dBv6PGaeyPQJcgQPDjt/Hn/PvYZde1iqfp8U=" crossorigin="anonymous">

<script class="next-config" data-name="gitalk" type="application/json">{"enable":true,"github_id":"duqian42707","repo":"blog-comment","client_id":"c9f48bc2fea3d4ce5d93","client_secret":"154d6227d3d7b532b36bfc1ce030121f0263ac90","admin_user":"duqian42707","distraction_free_mode":false,"proxy":"https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token","language":"zh-CN","js":{"url":"/lib/gitalk/dist/gitalk.min.js","integrity":"sha256-MVK9MGD/XJaGyIghSVrONSnoXoGh3IFxLw0zfvzpxR4="},"path_md5":"281e6aed5b64a11505a4e5945741486a"}</script>
<script src="/js/third-party/comments/gitalk.js"></script>

</body>
</html>
